package com.hualan.zhsq.entity.information;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 如需存入redis，实现Serializable 类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HouseInfo {
    /**
     * 主键
     */

    @TableId
    private Long id;

    /**
     * 房屋号
     */
    private String houseNumber;

    /**
     * 房屋朝向
     */
    private String orientation;

    /**
     * 房屋图片
     */
    private String imageUrl;

    /**
     * 建筑面积
     */
    private Double buildingArea;

    /**
     * 公摊面积
     */
    private Double publicShareArea;

    /**
     * 实用面积
     */
    private Double usableArea;

    /**
     * 房间户型
     */
    private String layout;

    /**
     * 单元号
     */
    private String unitNumber;

    /**
     * 楼层号
     */

    private String floorNumber;
    /**
     * 所属楼座
     */
    private Integer buildingBlockId;

    /**
     * 所属小区
     */
    private Integer communityId;

    /**
     * 房屋用途id
     */
    private Integer housePurposeId;

    /**
     * 房屋状态id
     */
    private Integer houseStatusId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 逻辑删除(0:未删除,1:已删除)
     */

    @TableLogic
    private Integer del;


    /**
     * 多表联查
     */
    @TableField(exist = false)
    private BuildingInfo buildingInfo;
    @TableField(exist = false)
    private HouseStatus houseStatus;
    @TableField(exist = false)
    private HousePurpose housePurpose;
    @TableField(exist = false)
    private CommunityInfo communityInfo;
    @TableField(exist = false)
    private ResidentInfo residentInfo;
    @TableField(exist = false)
    private OwnerRelation ownerRelation;

}

